package com.wechat.order.service.SellerService.Impl;

import com.wechat.order.dataobject.SellerInfo;
import com.wechat.order.repository.SellerInfoRepository;
import com.wechat.order.service.SellerService.SellerInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by zzy on 2017/12/20.
 */
@Service
public class SellerServiceImpl implements SellerInfoService {

    @Autowired
    private SellerInfoRepository sellerInfoRepository;

    @Override
    public SellerInfo findSellerInfoByOpenid(String openid) {
        return sellerInfoRepository.findByOpenid(openid);
    }
}
